package com.warmlight.voicepacket.plugin;

import android.view.Surface;

/**
 * Created by weiweijinpeng on 2018/7/25.
 */

public abstract class QmzbMediaInterface {

    public Object currentDataSource;//正在播放的当前url或uri

    public Object[] dataSourceObjects;//包含了地址的map（多分辨率用），context，loop，header等

    public abstract void start();

    public abstract void prepare();

    public abstract void pause();

    public abstract boolean isPlaying();

    public abstract void release();

    public abstract long getCurrentPosition();

    public abstract long getDuration();

    public abstract void seekTo(long time);

    public abstract void setSurface(Surface surface);

    public abstract void setVolume(float leftVolume, float rightVolume);


    //以下是在短视频页面显示的参数
    public abstract int getVideoWidth();

    public abstract int getVideoHeight();

    public abstract long getTcpSpeed();

    public abstract float getVideoOutputFramesPerSecond();

    public abstract float getVideoDecodeFramesPerSecond();

    public abstract long getBitRate();

    public abstract int getVideoDecoder();

    public abstract long getVideoCachedBytes();

    public abstract long getVideoCachedDuration();

    public abstract long getAudioCachedDuration();

    public abstract long getAudioCachedBytes();




}
